﻿<UserControl x:Class="VAdvantage.Apps.AForms.VPaySelect" xmlns:my1="clr-namespace:VAdvantage.Controls"  xmlns:my="clr-namespace:SLControls.Controls;assembly=SLControls" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    mc:Ignorable="d"
    >

    <Grid x:Name="LayoutRoot" ShowGridLines="False" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="25*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="25*" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <!--line 1-->
        <my:VLabel Name="lblBankAccount"  Grid.Row="0" Grid.Column="0" Content="Bank Account"  HorizontalAlignment="Right" Margin="5,5,5,5" VerticalAlignment="Center" Width="Auto" Height="Auto" />
        <my:VComboBox Name="cmbBankAccount"  Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" MaxWidth="200" Margin="5,5,5,5"  VerticalAlignment="Center" MinWidth="150" Height="Auto"  SelectionChanged="cmbBankAccount_SelectionChanged" />
        <my:VLabel Name="lblCurrentBalance"  Grid.Row="0" Grid.Column="2" Content="Currentbalance"  HorizontalAlignment="Right" Margin="5,5,5,5" VerticalAlignment="Center" Width="Auto" Height="Auto" />
        <my:VLabel Name="lblCurrentBalanceAmt"  Grid.Row="0" Grid.Column="3" Content="0.00"  HorizontalAlignment="Right" Margin="5,5,5,5" VerticalAlignment="Center" Width="Auto" Height="Auto" />
        <my:VLabel Name="lblCurency"  Grid.Row="0" Grid.Column="4" Content="USD"  HorizontalAlignment="Left" Margin="5,5,5,5" VerticalAlignment="Center" Width="Auto" Height="Auto" />

        <!--line 2-->
        <my:VLabel Name="lblBPartner" Grid.Row="1" Grid.Column="0" Content="Business Partner" HorizontalAlignment="Right" Margin="5,5,5,5" VerticalAlignment="Center" Width="Auto" Height="Auto"  />
        <my:VComboBox Name="cmbBPartner" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" MaxWidth="200" Margin="5,5,5,5"  VerticalAlignment="Center" MinWidth="150" Height="Auto" SelectionChanged="cmbBPartner_SelectionChanged" />
        <my:VCheckBox Name="chkDue"  Grid.Row="1" Grid.Column="3" Content="OnlyDueInvoicve" HorizontalAlignment="Left" Margin="5,5,5,5"  VerticalAlignment="Center"  />

        <!--line 3-->
        <my:VLabel Name="lblPayDate" Grid.Row="2" Grid.Column="0" Content="Payment date"  HorizontalAlignment="Right" Margin="5,5,5,5"  VerticalAlignment="Center" Width="Auto" Height="Auto"  />
        <sdk:DatePicker  x:Name="vdtpPayDate" Grid.Row="2" Grid.Column="1"  HorizontalAlignment="Left" MaxWidth="200" Margin="5,5,5,5" VerticalAlignment="Center" MinWidth="150" Width="Auto" Height="Auto" />
        <my:VLabel Name="lblPaymentRule" Grid.Row="2" Grid.Column="2" Content="paymentmethod"  HorizontalAlignment="Right" Margin="5,5,5,5"  VerticalAlignment="Center" Width="Auto" Height="Auto" />
        <my:VComboBox Name="cmbPaymentRule" Grid.Row="2" Grid.Column="3" HorizontalAlignment="Left" MaxWidth="200" Margin="5,5,5,5"  VerticalAlignment="Center" MinWidth="150" Height="Auto" />
        <my:VButton Grid.Row="2" Grid.Column="4" x:Name="btnRefresh" Margin="2,2,2,2"   HorizontalAlignment="Left" Height="40" Width="55"  Click="btnRefresh_Click">
            <StackPanel HorizontalAlignment="Stretch"  Height="Auto" VerticalAlignment="Stretch" Orientation="Horizontal">
                <Image Name="refresh"   HorizontalAlignment="Left" VerticalAlignment="Center" Source="/VAdvantage;component/Images/refresh.png"   />
            </StackPanel>
        </my:VButton>
        <!--line 4-->

        <!--<sdk:DataGrid Grid.Row="3" AutoGenerateColumns="False" Grid.ColumnSpan="5"  Height="Auto" HorizontalAlignment="Stretch" Margin="5,5,5,5" x:Name="vdgvPayment" VerticalAlignment="Stretch" Width="Auto" SelectionChanged="vdgvPayment_SelectionChanged" CellEditEnded="vdgvPayment_CellEditEnded" >-->
        <my:VDataGrid Grid.Row="3" AutoGenerateColumns="False" Grid.ColumnSpan="5"  Height="Auto" HorizontalAlignment="Stretch" Margin="5,5,5,5" x:Name="vdgvPayment" VerticalAlignment="Stretch" Width="Auto" SelectionChanged="vdgvPayment_SelectionChanged" CellEditEnded="vdgvPayment_CellEditEnded"  />
        <!--</sdk:DataGrid>-->


        <!--line 5-->
        <sdk:Label  x:Name="vDataStatus" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Left" Margin="5,5,5,5"  VerticalAlignment="Top" Grid.ColumnSpan="4" />
        <my:VLabel Name="lblPaymentAmount"  Grid.Row="4" Grid.Column="2"  Content="Payment Amount"  HorizontalAlignment="Right" Margin="5,5,5,5" VerticalAlignment="Center" Width="Auto" Height="Auto" />
        <my:VTextBox x:Name="txtPaymentAmount" Grid.Row="4" Grid.Column="3" TextAlignment="Right" HorizontalAlignment="Left" MaxWidth="200" Margin="5,5,5,5"  VerticalAlignment="Center" MinWidth="150" Height="Auto" />

        <!--line 6-->

        <my:VButton Grid.Row="5" Grid.Column="3" x:Name="btnCancel" Margin="2,2,2,2" VerticalAlignment="Bottom"  HorizontalAlignment="Right" Height="40" Width="55"  Click="btnCancel_Click">
            <StackPanel HorizontalAlignment="Stretch"  Height="Auto" VerticalAlignment="Stretch" Orientation="Horizontal">
                <Image Name="Cancel32"   HorizontalAlignment="Left" VerticalAlignment="Center" Source="/VAdvantage;component/Images/Cancel32.png"   />
            </StackPanel>
        </my:VButton>

        <my:VButton  Grid.Column="4" Grid.Row="5" x:Name="btnGenerate"  Margin="2,2,2,2"  VerticalAlignment="Bottom"  HorizontalAlignment="Left" Height="40" Width="55" Click="btnGenerate_Click">
            <StackPanel HorizontalAlignment="Stretch"  Height="Auto" VerticalAlignment="Stretch" Orientation="Horizontal">
                <Image Name="Process32"  Height="Auto" Width="Auto" HorizontalAlignment="Left" VerticalAlignment="Center" Source="/VAdvantage;component/Images/Process32.png"   />
            </StackPanel>
        </my:VButton>
        <Grid x:Name="busyWindow" Grid.RowSpan="6" Grid.ColumnSpan="5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity=".7" ShowGridLines="True" Background="LightGray" Visibility="Visible"  MouseLeftButtonDown="busyWindow_MouseLeftButtonDown" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <ProgressBar Height="20" HorizontalAlignment="Center" Grid.Column="0" IsIndeterminate="True"  Name="progressBar1" VerticalAlignment="Center" Width="250" />
            <!--<TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading...." VerticalAlignment="Center"></TextBlock>-->
        </Grid>



    </Grid>
</UserControl>
